package com.xnyzc.lhy.task.task.mis;


import com.xnyzc.lhy.task.fegin.mis.QuartzCOrderTaskService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component("COrderTask")
public class COrderTask {

    @Autowired
    private QuartzCOrderTaskService quartzCOrderTaskService;

    /**
     * 预约单到时间未派单执行司管提醒
     * 定时任务调用，每隔1分钟调用1次
     */
    @Scheduled(cron = "0 0/1 * * * ?")
    public void managerOrderMSG() {

        log.info("===========开始处理预约单到时间未派单执行司管提醒时长==========");
        quartzCOrderTaskService.managerOrderMSG();
        log.info("===========结束处理预约单到时间未派单执行司管提醒时长==========");
    }
}
